#ifndef RoRouter__h
#define RoRouter__h


#include <QtNetwork>
#include <QtXml>

#include "romashka.h"
#include "RoComponent.h"
#include "RoStanzas.h"

class RoServerModule;
class RoXmlStream;


class RoRouter:
    public RoComponent
{
    Q_OBJECT
    
public:
    
    typedef RoComponent super;
    
    explicit RoRouter(RoServerModule * parent = 0);
    ~RoRouter();

    RoServerModule * parentModule() const;
    
public slots:

    /// Список подключённых компонентов
    RoMethodResult ro_query_components(RoIqStanza request, QDomDocument * answer);

}; // class RoRouter


#endif // RoRouter__h
